<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script>
			function connect(arr,separ)
			{
				var s = "";
				for(i = 0; i < arr1.length; i++)
				{
					s += arr[i]
					if(i != arr1.length - 1)
					{
						s += separ
					}
				}
				return s
			}
			var arr1 = ['fas','dsg','sdga','fsdh']
			spear = '/'
			document.writeln(connect(arr1,spear))
			// arr1 = prompt()
			// document.writeln(connect(arr1,spear))
		</script>
	</body>
</html>
